<div id="_j_poilist">
    <#list list! as c>
        <div class="poi-item  have _j_poiitem _j_poiitem_5422742 _j_commentitem_191713354"
             data-lng="98.2974353" data-lat="8.0902522" data-typeid="3" data-itemid="191713354">
                            <span class="cover">
                                <a href="javascript:;" target="_blank"><img
                                            src="${c.sceneryUrl}"
                                            style="width: 120px;height: 120px;"></a>
                            </span>
            <div class="poi-detail">
                                <span class="s-ding">
                                    <a href="javascript:;" id="commentThumbUp" class="icon-ding disabled" data-id="${c.id}" data-fromid="${userInfo.id}"></a>
                                    <span class="_j_dingnum">${c.thumbupnum}</span>
                                </span>
                <h3 class="title"><a href="/scenery/detail?id=${c.sceneryId}"
                                     target="_blank">${c.sceneryName}<br><span>${c.sceneryEnglish}</span></a>
                </h3>
                <div class="rating" data-star="3" data-originstar="3">
                    <div class="review-score" data-japp="comment_dialog" data-jappconf="path"
                         data-source="24" data-poi_id="5422742" data-commentid="191713354"
                         data-typeid="3">

                        <span class="star${c.statNum}"></span>
                    </div>
                    <div class="info">
                        <span class="tip" style="margin-left:0">${c.recommend}</span>
                    </div>
                </div>
                <div class="poi-rev _j_comment">
                    ${c.content}
                </div>
            </div>
            <div class="poi-btns">
                <div class="option" id="_j_pluplader_btn_container_1">
                    <a class="btn-addPhoto _j_addimg" data-poiid="5422742" data-poiname="斯里纳斯国家海洋公园"
                       data-commentid="191713354" role="button" title="添加图片"
                       style="position: relative;"></a> <a class="btn-modfiy"
                                                           data-japp="comment_dialog"
                                                           data-jappconf="path" role="button"
                                                           data-source="24"
                                                           data-poi_id="5422742"
                                                           data-commentid="191713354" data-typeid="3"
                                                           title="编辑"></a>
                    <div id="html5_1dbk80mdq6b91fgd1jsjo0999e3_container"
                         class="moxie-shim moxie-shim-html5"
                         style="position: absolute; top: 0px; left: 0px; width: 21px; height: 18px; overflow: hidden; z-index: -1;">
                        <input id="html5_1dbk80mdq6b91fgd1jsjo0999e3" type="file"
                               style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"
                               multiple="" accept="image/jpeg,image/gif,image/png,.JPEG"></div>
                </div>
            </div>
            <div class="poi-btns">
                <span class="time">${c.createTime?string('yyyy-MM-dd HH:mm:ss')}</span></div>
            <div class="reply hide">
                <ul>

                </ul>
                <div class="more _j_morereply hide"><a>还有-2条回复</a></div>
                <div class="add _j_editreply hide">
                    <textarea></textarea>
                    <div>
                        <a class="btn btn-cancel _j_cancel">取消</a>
                        <a class="btn btn-submit _j_sunmitreply" data-commentid="191713354">回复</a>
                    </div>
                </div>
            </div>
        </div>
    </#list>
</div>

<script>
    $(function () {
        $("#commentThumbUp").click(function () {
            var commentiId = $(this).data("id");
            var fromid = $(this).data("fromid");

            $.post('/scenery/commentThumbUp', {fromid:fromid, commentId:commentiId}, function (data) {
                if (data.success) {
                    popup("点赞成功");
                    var newVar = (data.data);
                    $("._j_dingnum").html(newVar);
                    setTimeout(function () {
                        window.location.reload();
                    }, 1000)
                } else {
                    popup("取消点赞");
                    var number = (data.data);
                    $("._j_dingnum").html(number);
                    $("._j_dingnum").html(newVar);
                    setTimeout(function () {
                        window.location.reload();
                    }, 1000)
                }
            })
        })
    })
</script>